package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 集团及子公司信息对象 group_company
 * 
 * @author ruoyi
 * @date 2025-05-22
 */
public class GroupCompany extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 公司名称 */
    @Excel(name = "公司名称")
    private String name;

    /** 父公司ID，0表示集团总部 */
    @Excel(name = "父公司ID，0表示集团总部")
    private Long parentId;

    /** 逻辑删除标识(0=未删除,1=已删除) */
    @Excel(name = "逻辑删除标识(0=未删除,1=已删除)")
    private Integer isDeleted;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
